package com.niiwoo.civet.trade.dto.response.invest;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

@Setter
@Getter
@ToString
public class InvestmentRateInfoResponseDTO implements Serializable{
    private static final long serialVersionUID = -8898907707643930222L;

    private DeadlineAndRateInfo intelligenceInvest;

    private DeadlineAndRateInfo invest;

    private DeadlineAndRateInfo debtTransfer;



    @Setter
    @Getter
    @ToString
    public static class DeadlineAndRateInfo implements Serializable{
        private static final long serialVersionUID = 8724768463482636836L;
        //("利率起")
        private BigDecimal rateBegin = new BigDecimal("0.09");

        //("利率止")
        private BigDecimal rateEnd = new BigDecimal("0.15");

        //("期限起")
        private Integer deadlineBegin = 3;

        private Byte deadlineUnitBegin = (byte)1;

        //(期限止")
        private Integer deadlineEnd = 12;

        private Byte deadlineUnitEnd = (byte)1;

        //("type 1智能投,2散标,3债转")
        private Byte type ;

        private BigDecimal startInvestAmount = new BigDecimal("100");
    }
}
